package com.dehui.traders.ui.fragment;

import com.dehui.traders.BR;
import com.dehui.traders.R;
import com.dehui.traders.databinding.FragmentFreightSpaceBinding;
import com.dehui.traders.ui.viewmodle.FreightSpaceViewModel;

import me.goldze.mvvmhabit.base.BaseFragment;

/**
 * Created by hqq on 18.4.19.
 */
public class FreightSpaceFragment extends BaseFragment<FragmentFreightSpaceBinding,FreightSpaceViewModel>{

    private FreightSpaceViewModel viewModel;

    @Override
    public int initContentView() {
        return R.layout.fragment_freight_space;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public FreightSpaceViewModel initViewModel() {
        viewModel = new FreightSpaceViewModel(getContext());
        return viewModel;
    }

    @Override
    public void initData() {
        viewModel.initChart(binding.mycombinedchartKLine);
    }
}
